package com.zy.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.io.Serializable;

/**
 * @Author CarreyZhou
 * @Date: 2024/5/3 13:03
 */
@Getter
@AllArgsConstructor
public enum BizcExceptionCodeEnum  {

    USER_NOT_LOGIN(2, "用户未登录"),
    USER_LOGIN_ERROR(3, "用户名或密码错误"),
    USER_NOT_EXIST(4, "用户不存在"),
    USER_ALREADY_EXIST(5, "用户已存在"),
    USER_NOT_ACTIVE(6, "用户未激活"),
    USER_NOT_PERMISSION(7, "用户无权限"),
    USER_PASSWORD_ERROR(8, "密码错误"),
    USER_PASSWORD_NOT_MATCH(9, "密码不匹配"),
    USER_PASSWORD_RESET_SUCCESS(10, "密码重置成功"),
    USER_PASSWORD_RESET_FAIL(11, "密码重置失败"),
    USER_PASSWORD_UPDATE_SUCCESS(12, "密码修改成功"),
    USER_PASSWORD_UPDATE_FAIL(13, "密码修改失败"),
    USER_ROLE_NOT_EXIST(14, "角色不存在"),
    USER_ROLE_ALREADY_EXIST(15, "角色已存在"),
    USER_ROLE_NOT_ACTIVE(16, "角色未激活"),
    USER_NAME_EXIST(17, "用户名已存在");


    private final Integer code;
    private final String description;


}
